-- GENERATED SPELL FOR [Rotting Dead] --


function spell0_1525(pUnit, Event) --@Disease Touch,n/a--
pUnit:FullCastSpellOnTarget(3234,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1525', 573, 1)
end

function Sorts_1525(pUnit, Event)
local choix_sorts_1525 = math.random(0, 0)
if choix_sorts_1525 == 0 then
pUnit:RegisterEvent('spell0_1525', 1, 1)
end
end

function mob1525_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1525', math.random(1500, 3000), 1)
end

function mob1525_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1525_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1525_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1525, 1, 'mob1525_Action')
RegisterUnitEvent(1525, 2, 'mob1525_Leave')
RegisterUnitEvent(1525, 3, 'mob1525_Kill')
RegisterUnitEvent(1525, 4, 'mob1525_Die')
